<?php
class Macys_View_Helper_UserSessionInfo extends Zend_View_Helper_Abstract 
{
	
	public $view;
	
	public function setView(Zend_View_Interface $view) {
		$this->view = $view;
		
	}
	
	public function userSessionInfo() {
		//$user = new Macys_Api_V2_User();
		$txt = "";
		$token = null ; // $user->getAccessToken();
		if ($token)
		{
		$txt = "Access Token | " . $token;
		$txt .= " | Refresh Token | " . $user->getRefreshToken();
		$txt .= " | Expires in | " . $user->getExpiresIn();
		}
		//return htmlspecialchars($txt);
		$auth = Zend_Auth::getInstance();
		$token = $auth->getIdentity(); 
		$txt = 'Token | ' . $token;
		if(!empty($token))
		return $txt;
		else
		return 'Sign in ';
	} 

}